package com.gin.supermarket_inventory_system.commodity.docket;

import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 *
 * @since : 2023/9/26 16:48
 * @author : ginstone
 * @version : v1.0.0
 **/
@Configuration
public class CommodityDocket {
    /**
     *  接口路径前缀
     */
    public static final String API_PREFIX = "/commodity";

    @Bean
    public GroupedOpenApi commodityApi() {
        return GroupedOpenApi.builder()
                .group("商品管理")
                .pathsToMatch(API_PREFIX + "/**")
                .build();
    }
}
